<template>
	<view>
		<button @click="greet">Greet</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				name: 'Vue.js'
			}
		},
		methods: {
			greet(event){
				console.log(event)
				uni.showToast({
					tittle: 'Hello'+ this.name + '!'
				});
			}
		}
	}
</script>

<style>

</style>
